<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Small/Water.js此处编写
 -->
<template>
  <div>
    <view-grid
      ref="grid"
      :columns="columns"
      :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions"
      :table="table"
    >
    </view-grid>
  </div>
</template>

<script>
    import extend from "@/extension/Small/Water.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '消费记录',
                    name: 'Water',
                    url: "/Water/",
                    sortName: "id"
                },
                searchFormFields: {orderNo:''},
                searchFormOptions: [[{"title":"订单号","field":"orderNo","type":"string"},
                                    {"title":"退款单号","field":"outRefundNos","type":"string"},
                                    {"title":"支付金额/退款金额","field":"payMoney","type":"string"}],
                                    [{"title":"渠道","field":"spare2","type":"select",dataKey:"Transaction_Types",data:[]},
                                    {"title":"状态","field":"status","type":"select",dataKey:"",data:[{key:'-1',value:'退款'},{key:'1',value:'支付'}]},
                                    ]],
                columns: [{field:'creator',title:'创建人名称',type:'string',width:180,align:'left'},
                    {field:'orderNo',title:'订单号',type:'string',width:200,align:'left'},
                    {field:'outRefundNos',title:' 退款单号',type:'string',width:200,align:'left'},
                       {field:'payMoney',title:'支付金额/退款金额',type:'decimal',width:150,align:'left'},
                       {field:'payTime',title:'支付时间',type:'datetime',width:200,align:'left'},
                       {field:'spare2',title:'渠道',type:'string',width:220,align:'left',bind: { key: "Transaction_Types", data: [] }},
                       {field:'status',title:'状态',type:'string',width:90,align:'left',bind: { key: "", data: [{key:'-1',value:'退款'},{key:'1',value:'支付'}] }},
                       {field:'title',title:'项目名称',type:'string',width:220,align:'left'},
                       {field:'wxOrderNo',title:'渠道订单号',type:'string',width:250,align:'left'},
                        {field:'createDate',title:'创建时间',type:'datetime',width:190,align:'left'},
                       
                      //  {field:'modifier',title:'修改人名称',type:'string',width:180,align:'left'},
                      //  {field:'modifyDate',title:'修改时间',type:'datetime',width:190,align:'left'},
                       ],
            };
        }
    };
    export default vueParam;
</script>
